package io.github.dao;

import io.github.entity.SysCallControlEntity;
import io.github.util.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: weil
 * @date: 2019/9/18 20:34
 * @version: 1.0
 * @description:
 */
public interface SysCallControlDao extends BaseDao<SysCallControlEntity> {

    /**
     * 修改呼叫控制
     *
     * @param entity
     */
    void updateRouter(@Param("entity")SysCallControlEntity entity, @Param("conId") Long conId);

    List<SysCallControlEntity> queryAllRouter();

    /**
     * 用过id获取呼叫控制集合
     *
     * @param areaid
     * @return
     */
    List<SysCallControlEntity> queryByAreaid(String areaid);

}
